package com.skywolf.chem.utils.sms;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * Created by pei_pei on 2020/6/28.
 */
public class AliySmsResponse {
    @JSONField(
            name = "Code"
    )
    private String code;
    @JSONField(
            name = "Message"
    )
    private String message;
    @JSONField(
            name = "RequestId"
    )
    private String requestId;
    @JSONField(
            name = "BizId"
    )
    private String bizId;

    public AliySmsResponse() {
    }

    public String getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }

    public String getRequestId() {
        return this.requestId;
    }

    public String getBizId() {
        return this.bizId;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    public void setBizId(String bizId) {
        this.bizId = bizId;
    }

    public boolean equals(Object o) {
        if(o == this) {
            return true;
        } else if(!(o instanceof AliySmsResponse)) {
            return false;
        } else {
            AliySmsResponse other = (AliySmsResponse)o;
            if(!other.canEqual(this)) {
                return false;
            } else {
                label59: {
                    String this$code = this.getCode();
                    String other$code = other.getCode();
                    if(this$code == null) {
                        if(other$code == null) {
                            break label59;
                        }
                    } else if(this$code.equals(other$code)) {
                        break label59;
                    }

                    return false;
                }

                String this$message = this.getMessage();
                String other$message = other.getMessage();
                if(this$message == null) {
                    if(other$message != null) {
                        return false;
                    }
                } else if(!this$message.equals(other$message)) {
                    return false;
                }

                String this$requestId = this.getRequestId();
                String other$requestId = other.getRequestId();
                if(this$requestId == null) {
                    if(other$requestId != null) {
                        return false;
                    }
                } else if(!this$requestId.equals(other$requestId)) {
                    return false;
                }

                String this$bizId = this.getBizId();
                String other$bizId = other.getBizId();
                if(this$bizId == null) {
                    if(other$bizId != null) {
                        return false;
                    }
                } else if(!this$bizId.equals(other$bizId)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof AliySmsResponse;
    }

    public int hashCode() {
        boolean PRIME = true;
        byte result = 1;
        String $code = this.getCode();
        int result1 = result * 59 + ($code == null?43:$code.hashCode());
        String $message = this.getMessage();
        result1 = result1 * 59 + ($message == null?43:$message.hashCode());
        String $requestId = this.getRequestId();
        result1 = result1 * 59 + ($requestId == null?43:$requestId.hashCode());
        String $bizId = this.getBizId();
        result1 = result1 * 59 + ($bizId == null?43:$bizId.hashCode());
        return result1;
    }

    public String toString() {
        return "AliyunSmsResponse(code=" + this.getCode() + ", message=" + this.getMessage() + ", requestId=" + this.getRequestId() + ", bizId=" + this.getBizId() + ")";
    }
}
